package com.sunnada.demo.log;
/**
 * @program: mybatisproject2
 * @description: 操作类型枚举
 * @author: 李瑞益
 * @create: 2018-10-28 14:26
 **/
public enum OperationTypeEnum {
    ADD("新增",1),DELETE("删除",2),UPDATE("更新",3),NORMAL("查看",4),LOGIN("登录",5);
    private String name;
    private byte index;

    private OperationTypeEnum(String name , int index){
        this.name = name;
        this.index = (byte)index;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public byte getIndex() {
        return index;
    }

    public void setIndex(byte index) {
        this.index = index;
    }
}
